<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QFileIconProvider Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QFileIconProvider Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QFileIconProvider class provides file icons for the <a href="qdirmodel.html">QDirModel</a> class. <a href="#details">More...</a></p>
<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qfileiconprovider.html#IconType-enum">IconType</a></b> { Computer, Desktop, Trashcan, Network, ..., File }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qfileiconprovider.html#QFileIconProvider">__init__</a></b> (<i>self</i>)</li><li><div class="fn" />QIcon <b><a href="qfileiconprovider.html#icon">icon</a></b> (<i>self</i>, IconType)</li><li><div class="fn" />QIcon <b><a href="qfileiconprovider.html#icon-2">icon</a></b> (<i>self</i>, QFileInfo)</li><li><div class="fn" />QString <b><a href="qfileiconprovider.html#type">type</a></b> (<i>self</i>, QFileInfo)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QFileIconProvider class provides file icons for the <a href="qdirmodel.html">QDirModel</a> class.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="IconType-enum" />QFileIconProvider.IconType</h3><p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="40%">
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
<tr><td valign="top"><tt>QFileIconProvider.Computer</tt></td><td align="center" valign="top"><tt>0</tt></td></tr>
<tr><td valign="top"><tt>QFileIconProvider.Desktop</tt></td><td align="center" valign="top"><tt>1</tt></td></tr>
<tr><td valign="top"><tt>QFileIconProvider.Trashcan</tt></td><td align="center" valign="top"><tt>2</tt></td></tr>
<tr><td valign="top"><tt>QFileIconProvider.Network</tt></td><td align="center" valign="top"><tt>3</tt></td></tr>
<tr><td valign="top"><tt>QFileIconProvider.Drive</tt></td><td align="center" valign="top"><tt>4</tt></td></tr>
<tr><td valign="top"><tt>QFileIconProvider.Folder</tt></td><td align="center" valign="top"><tt>5</tt></td></tr>
<tr><td valign="top"><tt>QFileIconProvider.File</tt></td><td align="center" valign="top"><tt>6</tt></td></tr>
</table></p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QFileIconProvider" />QFileIconProvider.__init__ (<i>self</i>)</h3><p>Constructs a file icon provider.</p>
<a name="//apple_ref/cpp/instm/QFileIconProvider/~QFileIconProvider" />
<h3 class="fn"><a name="icon" /><a href="qicon.html">QIcon</a> QFileIconProvider.icon (<i>self</i>, <a href="qfileiconprovider.html#IconType-enum">IconType</a>)</h3><p>Returns an icon set for the given <i>type</i>.</p>
<h3 class="fn"><a name="icon-2" /><a href="qicon.html">QIcon</a> QFileIconProvider.icon (<i>self</i>, <a href="qfileinfo.html">QFileInfo</a>)</h3><p>Returns an icon for the file described by <i>info</i>.</p>
<a name="//apple_ref/cpp/instm/QFileIconProvider/type" />
<h3 class="fn"><a name="type" />QString QFileIconProvider.type (<i>self</i>, <a href="qfileinfo.html">QFileInfo</a>)</h3><p>Returns the type of the file described by <i>info</i>.</p>
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;snapshot-4.7.1-5014f7c72a58 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.6.1</td></tr></table></div></address></body></html>